<%
	import java.util.UUID;
	import com.db.Config
	def  userMessage =[
			user:request.getParameter('user'), 
			psw:request.getParameter('psw'),
			email:request.getParameter('email'),
			key:UUID.randomUUID().toString()
			]
	//确认是否可以添加
	def userMap=[user:request.getParameter('user'),_table:Config.ADMIN_USER]
	if(com.db.MongoDb.count(userMap)>0){
		println userMap<<[error:1]
		 
	}else{
		userMessage=userMessage+[state:1]
		userMessage<<[now:System.currentTimeMillis()]
		userMessage<<[_table:Config.ADMIN_USER]
		com.db.MongoDb.insert(userMessage)
		println userMessage
	}
%>
 